package com.ftg.learn.aop;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * aop :  面向切面编程
 *
 * @author kangjx
 * @createTime 2022/8/15
 */
public class LearnAop {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext("com.ftg.learn.aop");
        Person p = ctx.getBean(Person.class);
        p.setSname("张三");
        System.out.println(p.info());
    }

}
